package com.smarttest.portal.refresh.util.model;

import java.io.IOException;

import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;

public class QueryParam {
	private String orgcode;		//否	车辆所属机构
	private String orgroot; // 否 车辆所属顶级机构
	private String targetorgcode; // 否 车辆共享目标机构
	private String targetorgroot; // 否 车辆共享目标顶级机构
	private String updatetimeGe;		//否	共享信息最后变更时间下限(大于等于)
	private String updatetimeLt;		//否	共享信息最后变更时间上限(小于)
	@Override
	public String toString() {
		ObjectMapper mapper = new ObjectMapper();
		try {
			return mapper.writeValueAsString(this);
		} catch (JsonGenerationException e) {
			e.printStackTrace();
		} catch (JsonMappingException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return "{}";

	}

	public String getOrgroot() {
		return orgroot;
	}

	public void setOrgroot(String orgroot) {
		this.orgroot = orgroot;
	}

	public String getTargetorgcode() {
		return targetorgcode;
	}

	public void setTargetorgcode(String targetorgcode) {
		this.targetorgcode = targetorgcode;
	}

	public String getTargetorgroot() {
		return targetorgroot;
	}

	public void setTargetorgroot(String targetorgroot) {
		this.targetorgroot = targetorgroot;
	}

	public String getOrgcode() {
		return orgcode;
	}

	public void setOrgcode(String orgcode) {
		this.orgcode = orgcode;
	}

	public String getUpdatetimeGe() {
		return updatetimeGe;
	}

	public void setUpdatetimeGe(String updatetimeGe) {
		this.updatetimeGe = updatetimeGe;
	}

	public String getUpdatetimeLt() {
		return updatetimeLt;
	}

	public void setUpdatetimeLt(String updatetimeLt) {
		this.updatetimeLt = updatetimeLt;
	}


}
